Staff ="王健林"
comany = 'alibaba'
address = '杭州'

def __init__(self,name='无名',age=0,position="无"):
    self.name = name
    self.age = age
    self.position = position


def get_name(self):
    return self.__name

def get_name(self):
    return self.__name
def set_name(self,name):
    self.__name = name

def get_age(self):
    return self.__age
def set_age(self,age):
    if 0 <= age <= 100:
        self.__age = age
    else:
        print(f"{age}有误,有效范围0~100")

def __str__(self) ->str:
    str = f"~~~姓名:{self.name} 年龄:{self.age} 职位:{self.positon} 公司:{Staff.company}"
    return str



    def work(self):
        print(self.name + "看大门")
    def salary(self):
        return 8888
    def sayself(self):
        str = "姓名：%s 年龄: %d 职位: %s 公司: %s"% (self.name, self.age, self.position,Staff.company)
        print(str)


sta1 = Staff('王健林',60,'看大门')
print(sta1)
sta1.set_name('王思聪')

def work(self):
        print(self.get_name() + "在摸鱼。。。偶尔搬砖")

        def __str__(self) -> str:
            return super().__str__()+"1231231231"


class Tech:
    pass


t1 = Tech()
t1.work()
print(t1)